<template>
  <div class="screen-container">
    <div class="header">40米铝合金船监控系统</div>
    <div class="content">
      <div class="top">
        <div class="left">
          <Box1 />
          <Box2 />
        </div>
        <div class="middle">
          <Box3 />
          <Box4 />
        </div>
        <div class="right">
          <Box5 />
        </div>
      </div>
      <div class="bottom">
        <Box6 />
        <Box7 />
        <Box8 />
      </div>
    </div>
  </div>
</template>

<script>
import Box1 from "./components/top/box1/index";
import Box2 from "./components/top/box2/index";
import Box3 from "./components/top/box3/index";
import Box4 from "./components/top/box4/index";
import Box5 from "./components/top/box5/index";
import Box6 from "./components/bottom/box1/index";
import Box7 from "./components/bottom/box2/index";
import Box8 from "./components/bottom/box3/index";
export default {
  components: { Box1, Box2, Box3, Box4, Box5, Box6, Box7, Box8 },
};
</script>

<style scoped lang="scss">
.screen-container {
  background-image: url("/img/screen/backbgr.jpeg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 0 20px 20px;
  .header {
    width: 100%;
    height: 60px;
    background-image: url("/img/screen/header.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #fff;
    line-height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
  }
  .content {
    height: calc(100% - 70px);
    margin-top: 10px;
    display: grid;
    grid-template-rows: 73% 25%;
    grid-row-gap: 2%;
    .top {
      display: grid;
      grid-template-columns: 24% 50% 24%;
      grid-column-gap: 1%;
      .left {
        display: grid;
        grid-template-rows: 62% 36%;
        grid-row-gap: 2%;
      }
      .middle {
        display: grid;
        grid-template-rows: 20% 78%;
        grid-row-gap: 2%;
      }
      .right {
        display: grid;
        grid-template-rows: 100%;
        grid-template-columns: 100%;
      }
    }
    .bottom {
      display: grid;
      grid-template-columns: 30% 44% 24%;
      grid-column-gap: 1%;
      grid-template-rows: 100%;
    }
  }
}
</style>
